package main

import (
	"bubble-auth-test/config"
	"bubble-auth-test/database"
	"bubble-auth-test/models"
	"bubble-auth-test/routes"
)

func main() {
	// Initialize configuration
	config.InitConfig()

	// Connect to database
	database.InitDB()

	// Migrate database
	models.AutoMigrate(database.DB)

	// Setup routes
	r := routes.SetupRouter()

	// Start server
	r.Run(":8080")
}
